<!DOCTYPE html>
<html lang="en" >
<head>
    <title>中华爱情网-我的奖品</title>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/favicon.png" />
    <style type="text/css">
    body{
      background:url("/surprice_public/bg.png");
      color: #fff;
    }
    p{text-align: center;}
    #get_box{
      position: relative;
    }
    #msg_box{
      width: 80%;
      padding: 5%;
      margin: 50px auto;
      background-color: #ff9191;
      border: 4px solid #ff6c6c;
      border-radius: 5px;
    }
    </style>
</head>
<body>

  <?php if(isset($result)):?>
  <div id="msg_box">

      <?php foreach ($result as $key => $value): ?>
          <h2><?=$value->subject?></h2>
          <p style="text-align:left;">
            <span>兑换码：<?=$value->verify_code?></span>
            <span style="float:right;"><?=$value->created_at?></span>
          </p>
      <?php endforeach?>    

     
  </div>

  <?php else:?>
    <div id="msg_box" ><h2>还没有奖品呢！</h2></div>
  <?php endif?>
</body>
 
</html>